<?php
$log_array = array ();
$db_core = null;
require_once ('inc/config.inc.php');
require_once ('library/global.func.php');
$module = $_GET['module'];
$uin = $_GET['uin'];
$sessionKey = $_GET['sessionKey'];
if ($module == "show") {
	require_once ('library/core.class.php');
	$core = new core($db_core);
	if ($uin > 0 && $sessionKey != "") {
		$log_array = $core->session_login($uin, $sessionKey);
		unset ($core);
		if ($log_array['chk_uin'] == $uin) {
			$_SESSION['account_arr'] = $log_array;
			header("Location:show.php?module={$module}");
		} else {
			header("Location:./");
		}
		close_conn($db_core);
	} else {
		header("Location:./");
	}
	exit ();
}
unset ($core);
if (is_object($db_core))
	close_conn($db_core);
exit;
?>